<extend name="Index::index"/>
            <!-- 左菜单区域结束-->

            <!--右内容区域-->
<block name="table">
            <div class="layout-content">

                <div class="page-title">影院管理</div>

                <div class="content-top">
                    <ul class="top-nav">
                        <li class="active"><span>添加影院</span></li>
                    </ul>
                    <div class="clearfix"></div>
                </div>
                <!--content-main start-->
                <div class="container-fluid content-main">
                    <div class="row">
                        <div class="col-md-12">

                            <div id="tsk" class="ui-tips bg-info" style="display:none">
                                <span class="icon glyphicon glyphicon-info-sign"></span> <span  id="ts">提示信息提示信息提示信息提示信息提示信息提示信息。</span>
                            </div>

                            <form class="col-md-offset-3 form-horizontal" onsubmit="return false">

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">用户名</label>
                                    <div class="col-sm-5">
                                        <input type="text" id="name" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                </div>

                                    <div class="form-group">
                                    <label class="col-sm-2 control-label">密码</label>
                                    <div class="col-sm-5">
                                        <input type="password" id="pwd" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                    </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">影院名称</label>
                                    <div class="col-sm-5">
                                        <input type="text" id="cinema" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">地址</label>
                                    <div class="col-sm-5">
                                        <input type="text" id="address" class="form-control">
                                        <span class="help-block"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-8">
                                        <button onclick="func()" style="margin-left: 90px;width: 150px" type="submit" class="btn btn-default">保存</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <!--content-main end-->
            </div>
            <script>
                      function func(){
                          var name=$('#name').val();
                          var pwd=$('#pwd').val();
                          var cinema=$('#cinema').val();
                          var address=$('#address').val();
                          $.ajax({
                              type:'post',
                              url:"{:U('Cinema/create')}",
                              data:{'name':name,'pwd':pwd,'cinema':cinema,'address':address},
                              datatype:'json',
                             success:function(data){
                                       $('#tsk').css('display','block');
                                       $('#ts').html(data);
                              }
                          })
                      }
            </script>
</block>
</extend>
            <!--右内容区域结束-->